package com.xujf.sym.model.api;

import com.xujf.sym.model.entity.Result;
import com.xujf.sym.model.entity.UserData;

import java.util.List;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface ApiService {


    @POST("login")
    Call<Result.LoginData> login(@Body RequestBody loginUser);

    @POST("logout")
    Call<Result> logout();

    @GET("user/{userName}")
    Call<Result.Data<UserData>> getUser(
            @Path("userName") String loginName
    );


}
